package com.fowo.api.syncLingxingApi.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fowo.api.syncLingxingApi.entity.TmpSyncLingxingToWarehouse;
import com.fowo.api.entity.Warehouse;
import com.fowo.api.syncLingxingApi.mapper.TmpSyncLingxingToWarehouseMapper;
import com.fowo.api.syncLingxingApi.service.TmpSyncLingxingToWarehouseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
@DS("ds24")
public class TmpSyncLingxingToWarehouseServiceImpl
        extends ServiceImpl<TmpSyncLingxingToWarehouseMapper, TmpSyncLingxingToWarehouse>
        implements TmpSyncLingxingToWarehouseService {
    @Override
    public Integer updateTo(String version) {
        return baseMapper.updateTo(version);
    }

    @Override
    public Integer insertInto(String version) {
        return baseMapper.insertInto(version);
    }

    @Override
    public void clearAll() {
        baseMapper.clearAll();
    }

    @Override
    public List<Warehouse> getWarehouseByWid(List<TmpSyncLingxingToWarehouse> warehouseList) {
        return baseMapper.getWarehouseByWid(warehouseList);
    }
}
